package com.wu.flandre.configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatisPluaConfiguration <br/>
 *
 * @author 50816 <br/>
 * @date 2019/12/12 22:04 <br/>
 */
@Configuration
@Slf4j
public class MyBatisPluaConfiguration {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        log.debug("注册分页插件");
        return new PaginationInterceptor();
    }
}
